package com.xiaochen.manager.mapper;

import com.xiaochen.model.dto.product.CategoryBrandDto;
import com.xiaochen.model.entity.product.Brand;
import com.xiaochen.model.entity.product.CategoryBrand;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 分类-品牌关联
 *
 * @author pinkhors
 */
@Mapper
public interface CategoryBrandMapper {

    List<CategoryBrand> selectByPage(CategoryBrandDto categoryBrandDto);

    void saveCategoryBrand(CategoryBrand categoryBrand);

    void deleteCategoryBrand(Long id);

    void updateCategoryBrand(CategoryBrand categoryBrand);

    List<Brand> selectByCategoryId(Long categoryId);
}
